function minmax(_min,_max){
return Math.random()*(_max-_min)+_min
}
// this player might just have empowered many things. or not.

function clickPlay(){
let lists = document.getElementsByClassName("bilibili-player-iconfont");
	for (let elem of lists){
		try{
		if (elem.getAttribute("aria-label") == "播放"){elem.click();}}
			catch(e){console.log(e)}
	}
}
function clickPause(){
let lists = document.getElementsByClassName("bilibili-player-iconfont");
	for (let elem of lists){
		try{
		if (elem.getAttribute("aria-label") == "暂停"){elem.click();}}
			catch(e){console.log(e)}
	};
}
function failsafe_noplay(){
player.pause();
	clickPause();
	setTimeout(()=>{failsafe_noplay()},500)
}
function change_time(){
	let time_random = minmax(0,player.getDuration());
	player.seek(time_random);
	clickPause();
}

